// 自动生成模板CROSSBorderCase
package flaud

import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
	"gorm.io/datatypes"
	"time"
)

// 跨境案 结构体  CROSSBorderCase
type CROSSBorderCase struct {
	global.GVA_MODEL
	CaseNumber      *string        `json:"caseNumber" form:"caseNumber" gorm:"column:case_number;comment:案件编号;" binding:"required"`         //卷宗号
	CaseTitle       *string        `json:"caseTitle" form:"caseTitle" gorm:"column:case_title;comment:案件标题;"`                               //案由
	CaseStatus      string         `json:"caseStatus" form:"caseStatus" gorm:"column:case_status;type:enum('Open','Closed');comment:案件状态;"` //状态
	CaseType        *string        `json:"caseType" form:"caseType" gorm:"column:case_type;comment:案件类型;"`                                  //类型
	ReportDate      *time.Time     `json:"reportDate" form:"reportDate" gorm:"column:report_date;comment:报案日期;"`                            //报案日期
	Reporter        *string        `json:"reporter" form:"reporter" gorm:"column:reporter;comment:报案人;"`                                    //报案人
	ReporterContact *string        `json:"reporterContact" form:"reporterContact" gorm:"column:reporter_contact;comment:联系人;"`              //联系人
	ReporterPhone   *string        `json:"reporterPhone" form:"reporterPhone" gorm:"column:reporter_phone;comment:联系电话;"`                   //联系电话
	CaseDetails     *string        `json:"caseDetails" form:"caseDetails" gorm:"column:case_details;comment:案件详情;type:text;"`               //案件详情
	Evidence        datatypes.JSON `json:"evidence" form:"evidence" gorm:"column:evidence;comment:证据;" swaggertype:"array,object"`          //证据
}

// TableName 跨境案 CROSSBorderCase自定义表名 cross_border_case
func (CROSSBorderCase) TableName() string {
	return "cross_border_case"
}
